const request = require("../utils/request");
const path = "/api/v1/customer";
const GetOredr = (data: any) => request("get", path + "/order-w/s", data);
const GetOrderId = (data: any) =>
  request("get", path + "/order-w/id/" + data.id, data);
const GetOrderSerial = (data: any) =>
  request("get", path + "/order-w/serial/" + data.serial, data);
const PostOrder = (data: any) => request("post", path + "/order-w", data);
const OrderCancel = (id: any) =>
  request("post", path + "/order-w/" + id + "/cancel");
export { GetOredr, GetOrderId, GetOrderSerial, PostOrder, OrderCancel };
